﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>"  %>
<%@ Import Namespace="UncleBobWebService.Models" %>

<!DOCTYPE html>

<html>
<head id="CreateNewQuestion" runat="server">
    <title>Staffing Expert New Question</title>
    <link href="/Theme/UncleBobTheme.css" rel="Stylesheet" />
</head>

<body>
<h2>Create New Question</h2>
    <div class="body">

        <!-- Begin Form 
                                  Method        Route Config Name
        -->
        <% using (Html.BeginForm("FormAction", "JobQuestions", FormMethod.Post)) {%>
            <div class="box">
                <div class="left-justify">
                Question
                     <div>
                        <textarea name="question" style="resize: none;" rows="10" cols="72"></textarea>
                     </div>
                     <div>
                     If your question is multiple choice please provide the required answers.                     
                     </div>
                     <br />
                    <div>
                    Answer 1
                         <div>
                            <textarea name="answer1" style="resize: none; width: 498px;" rows="2"></textarea>                                          
                             <input type=checkbox name="answerCorrect1" />Correct?                                                   
                         </div>
                    </div>
                    <div>
                    Answer 2
                         <div>
                            <textarea name="answer2" style="resize: none; width: 498px;" rows="2"></textarea>              
                            <input type=checkbox name="answerCorrect2" />Correct?                                                  
                         </div>              
                    </div>
                    <div>
                    Answer 3
                         <div>
                            <textarea name="answer3" style="resize: none; width: 498px;" rows="2"></textarea>              
                            <input type=checkbox name="answerCorrect3" />Correct?                     
                         </div>              
                    </div>
                    <div>
                    Answer 4
                         <div>
                            <textarea name="answer4" style="resize: none; width: 498px;" rows="2"></textarea>              
                            <input type=checkbox name="answerCorrect4" />Correct?                        
                         </div>              
                    </div>
                    <div>
                    Answer 5
                         <div>
                            <textarea name="answer5" style="resize: none; width: 498px;" rows="2"></textarea>              
                            <input type=checkbox name="answerCorrect5" />Correct?                       
                         </div>              
                    </div>
                </div>
             </div>
           
        <!-- Buttons -->      
        <input class="button" type="submit" name="questionSubmit" value="Submit" />
        <input class="button" type="submit" name="questionCancel" value="Cancel" />
        <%}%>
    </div>
</body>
</html>
